home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
bkdr10.zip
/
BACKDOOR.DOC
< prev
next >
Wrap
Text File
|
1991-11-11
|
2KB
|
39 lines
Documentation for
BACKDOOR.COM version 1.0
by Duane Paulson
At times, the impulse to program an endless loop into a batch file can be
almost overwhelming. Anyone who has done this, however, knows one sad fact.
Endless loops in batch files can be darn near unbreakable. Usually, you end
up rebooting the machine to get out of them. BACKDOOR.COM was designed to
help you avoid all that.
With BACKDOOR, you have two seconds during which to press any key to exit your
batch file. The implementation is simple enough ... testing is done via DOS
errorlevel, as is traditional with batch files. If BACKDOOR termiates without
a key being pressed, an errorlevel of zero is returned. If the user presses
a key, an errorlevel of 255 is returned, allowing you to install a breakout
point in your program, and still maintain the unbroken flow of the endless
loop.
SYNTAX: Usage is simplicity itself. All you need do is place the following
lines in your batch file:
BACKDOOR
IF ERRORLEVEL 255 GOTO END_LABEL
You will then have a two-second (approximate) pause during which to press a
key to break out of the endless loop. During this pause, a message will be
displayed to the screen:
Backdoor (version number) is open...
The message will be erased when the program terminates. To suppress the display
of this message, use the following line in your batch file:
BACKDOOR > MUL
That's all there is to it. BACDOOR is a public domain utility. Use, distribute,
and enjoy.